BIN=processpool
SRC=$(wildcard *.cc) # 显示所有的.cc文件
OBJ=$(SRC:.cc=.o)
FLG=-o 
FLAGS=-c -Wall -std=c++11
COM=g++

$(BIN):$(OBJ)
	$(COM) $(FLG) $@ $^
%.o:%.cc 
	$(COM) $(FLAGS) $<

.PHONY:clean
clean:
	rm -rf $(BIN) $(OBJ)
	
.PHONY:test
test: 
	@echo $(SRC)
	@echo $(OBJ)

